using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using TMS.Domain.Entity;

namespace TMS.Infrastructrue.Persistence.Configuration
{
    public class MajorConfiguration : Base.BaseEntityConfiguration<Major>
    {

        public override void Configure(EntityTypeBuilder<Major> builder)
        {
            base.Configure(builder);

            builder.ToTable("major");

            builder.Property(x=>x.MajorName).HasColumnName("major_name").HasMaxLength(200000).HasColumnOrder(1);
            builder.Property(x=>x.CollegeId).HasColumnName("college_id").HasMaxLength(200000).HasColumnOrder(2);

        }

    }
}